package main

import (
	"fmt"
	"time"
)

// 主程序
func main() {

	const stlayout = "Jan 2, 2006 at 3:04pm (MST)"
	t, _ := time.Parse(stlayout, "Feb 3, 2013 at 7:54pm (CST)")
	fmt.Println(t)

	const shortForm = "2006-Jan-02 (CST)"
	t1, _ := time.Parse(shortForm, "2013-Feb-03 (CST)")
	fmt.Println(t1)

	now := time.Now()

	n := now.Format("2006/01/02 15:04:05")
	fmt.Println(n)

	loc, _ := time.LoadLocation("Asia/Shanghai")
	tlocal, _ := time.ParseInLocation("2006/01/02 15:04:05", "2021/10/22 15:44:14", loc)
	fmt.Println(tlocal.Add(1000 * time.Minute)) //当前时间添加 上 1000 分钟
}
